package cn.imvc.app.repositories;

import java.util.List;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.Menu;
import cn.imvc.data.jpa.repository.IJpqlExecutor;

public interface MenuRepository extends JpaRepository<Menu, Integer>,IJpqlExecutor<Menu>{
	public List<Menu> findByParentIsNull(Sort sort);
	public List<Menu> findByParentIsNullAndType(String type,Sort sort);
}
